document.querySelector('.search form').addEventListener('submit', function(e) {
    e.preventDefault();
    
    const keyword = this.querySelector('input[name="keyword"]').value.trim();
    if (!keyword) {
        return;
    }
    
    window.location.href = `/couples/search?keyword=${encodeURIComponent(keyword)}`;
}); 